<!DOCTYPE html>
<html class="x-admin-sm" lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <!--  头部导航栏-->
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Mobile Shop</title>

    <!-- Bootstrap Core CSS -->
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" type="text/css">

    <!-- Custom CSS -->
    <link rel="stylesheet" th:href="@{/css/style.css}">


    <!-- Custom Fonts -->
    <link rel="stylesheet" th:href="@{/font-awesome/css/font-awesome.min.css}" type="text/css">
    <link rel="stylesheet" th:href="@{/fonts/font-slider.css}" type="text/css">

    <!-- jQuery and Modernizr-->
    <script th:src="@{/js/jquery-2.1.1.js}"></script>

    <!-- Core JavaScript Files -->
    <script th:src="@{/js/bootstrap.min.js}"></script>
</head>
<body>
<div th:fragment="header">
    <!--Top-->
    <nav id="top">
        <div class="container">
            <div class="row">
                <div class="col-xs-6">
                    <!--                  语言框选项-->
                    <select class="language">
                        <option value="English" selected>English</option>
                        <option value="France">France</option>
                        <option value="Germany">Germany</option>
                    </select>
                    <select class="currency">
                        <!--                      货币选择框-->
                        <option value="USD" selected>USD</option>
                        <option value="EUR">EUR</option>
                        <option value="DDD">DDD</option>
                    </select>
                </div>
                <div class="col-xs-6">
                    <ul class="top-link">
                        <!--                        登录框-->
                        <li><a th:if="${noLogin} eq null" th:href="@{/user/toLogin}"><span
                                class="glyphicon glyphicon-user"></span> Login</a></li>
                        <li><a th:if="${noLogin} eq null" th:href="@{/user/toRegister}"><span
                                class="glyphicon glyphicon-user"></span> Register</a></li>
                        <li><a th:if="${isLogin}" th:href="@{/user/account(userId=${userId})}"><span
                                class="glyphicon glyphicon-user"></span> My Account</a></li>
                        <li><a th:if="${isLogin}" th:href="@{/user/exit}"><span class="glyphicon glyphicon-user"></span>
                            Exit</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </nav>
    <!--Header-->
    <header class="container">
        <div class="row">
            <div class="col-md-4">
                <div id="logo"><img th:src="@{/images/logo.png}"/></div>
            </div>
            <div class="col-md-4">
                <!--                搜索框-->
                <form class="form-search">
                    <input type="text" class="input-medium search-query">
                    <button type="submit" class="btn"><span class="glyphicon glyphicon-search"></span></button>
                </form>
            </div>
            <div th:if="${noLogin}" class="col-md-4">
                <!--                购物车框-->
                <div id="cart"><a class="btn btn-1" th:href="@{/car/cart}"><span
                        class="glyphicon glyphicon-shopping-cart"></span>CART : 0 ITEM</a></div>
            </div>
        </div>
    </header>
    <!--Navigation-->
    <nav id="menu" class="navbar">
        <div class="container">
            <div class="navbar-header"><span id="heading" class="visible-xs">Categories</span>
                <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse"
                        data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
            </div>
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-nav">
                    <li><a th:if="${noLogin} eq null" th:href="@{/user/home}">Home</a></li>
                    <li><a th:if="${isLogin}" th:href="@{/user/index(userId=${userId},username=${username},roleId=${roleId})}">Home</a>
                    </li>
                    <li class="dropdown"><a th:href="@{/pc/pcList}" class="dropdown-toggle" data-toggle="dropdown">PC
                        Computers</a>
                        <div class="dropdown-menu">
                            <div class="dropdown-inner">
                                <ul class="list-unstyled">
                                    <li><a th:href="@{/pc/window}">Window</a></li>
                                    <li><a th:href="@{/pc/macBook}">MacBook</a></li>
                                </ul>
                            </div>
                        </div>
                    </li>
                    <li class="dropdown"><a th:href="@{/laptop/laptopList}" class="dropdown-toggle"
                                            data-toggle="dropdown">Laptops &amp; Notebooks</a>
                        <div class="dropdown-menu">
                            <div class="dropdown-inner">
                                <ul class="list-unstyled">
                                    <li><a th:href="@{/laptop/dellList}">Dell</a></li>
                                    <li><a th:href="@{/laptop/asusList}">Asus</a></li>
                                    <li><a th:href="@{/laptop/samsungList}">Samsung</a></li>
                                    <li><a th:href="@{/laptop/lenovoList}">Lenovo</a></li>
                                    <li><a th:href="@{/laptop/acerList}">Acer</a></li>
                                </ul>
                            </div>
                        </div>
                    </li>
                    <li class="dropdown"><a th:href="@{/mobile/mobileList}" class="dropdown-toggle"
                                            data-toggle="dropdown">Mobiles &amp; Tablet</a>
                        <div class="dropdown-menu" style="margin-left: -203.625px;">
                            <div class="dropdown-inner">
                                <ul class="list-unstyled">
                                    <li><a th:href="@{/mobile/iphoneList}" href="category.html">Iphone</a></li>
                                    <li><a th:href="@{/mobile/MIList}" href="category.html">MI</a></li>
                                    <li><a th:href="@{/mobile/nokiaList}" href="category.html">Nokia</a></li>
                                    <li><a th:href="@{/mobile/lenovoList}" href="category.html">Lenovo</a></li>
                                    <li><a th:href="@{/mobile/googleList}" href="category.html">Google</a></li>
                                </ul>
                                <ul class="list-unstyled">
                                    <li><a th:href="@{/mobile/nexusList}" href="category.html">Nexus</a></li>
                                    <li><a th:href="@{/mobile/dellList}" href="category.html">Dell</a></li>
                                    <li><a th:href="@{/mobile/oppoList}" href="category.html">Oppo</a></li>
                                    <li><a th:href="@{/mobile/blackberryList}" href="category.html">Blackberry</a></li>
                                    <li><a th:href="@{/mobile/HTCList}" href="category.html">HTC</a></li>
                                </ul>
                                <ul class="list-unstyled">
                                    <li><a th:href="@{/mobile/LGList}" href="category.html">LG</a></li>
                                    <li><a th:href="@{/mobile/q_MobilesList}" href="category.html">Q-Mobiles</a></li>
                                    <li><a th:href="@{/mobile/sonyList}" href="category.html">Sony</a></li>
                                    <li><a th:href="@{/mobile/wikoList}" href="category.html">Wiko</a></li>
                                    <li><a th:href="@{/mobile/T_TList}" href="category.html">T&T</a></li>
                                </ul>
                            </div>
                        </div>
                    </li>
                    <li><a th:href="@{/software/softwareList}" href="category.html">Software</a></li>
                </ul>
            </div>
        </div>
    </nav>
</div>
</body>
</html>